package com.tlsy.commerce.model.multiTenant;

import com.tlsy.commerce.model.Product;
import com.tlsy.commerce.multi_tenant.TenantHolder;
import lombok.Getter;
import lombok.Setter;
import org.eclipse.persistence.annotations.Multitenant;
import org.eclipse.persistence.annotations.TenantDiscriminatorColumn;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 待售产品
 * @author Tlsy
 * @version commerce 0.0.1
 * @date 2017/4/13  15:22
 */
@Entity
@Table(name = "off_product")
@Getter
@Setter
@Multitenant
@TenantDiscriminatorColumn(name = "user_id", length=42, contextProperty = TenantHolder.TENANT_ID)
public class ForSaleProuduct extends Product{
    private static final long serialVersionUID = -8034863886693201934L;
}
